package net.openl10n.api.document;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;

import net.openl10n.api.Namespaces;

@XmlType(name="referenceType", namespace=Namespaces.DOCUMENT)
public class Reference extends Resource{
	
	public Reference() {
	}
	
	public Reference(String id) {
		super(id);
	}

	public Reference(String id, String relationshipId) {
		super(id);
		this.relationshipId = relationshipId;
	}

	private String relationshipId;
	
	@XmlAttribute(name="rId", required=true)
	public String getRelationshipId() {
		return relationshipId;
	}
	
	public void setRelationshipId(String relationshipId) {
		this.relationshipId = relationshipId;
	}
}
